﻿ using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Drop : RightClickOption

{	
	private InventorySlot invySlot;

	void Awake()
	{	
		
		invySlot = GetComponent<InventorySlot> ();
		if (invySlot.item!=null)
		{
			actionName = "Drop " + invySlot.item.name;
		} else
		{
			actionName = "Drop ";
		}
		
		
	}
	public override void Action (GameObject sender)
	{	
		invySlot.Drop();
	}
}
